/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransInstruction;
import com.sasis.dao.FlightTransInstructionDao;
import com.sasis.service.FlightTransInstructionManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransInstructionManagerImpl extends BaseManager implements FlightTransInstructionManager {
    private FlightTransInstructionDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransInstructionDao(FlightTransInstructionDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransInstructionManager#getFlightTransInstructions(com.sasis.model.FlightTransInstruction)
     */
    public List getFlightTransInstructions(final FlightTransInstruction flightTransInstruction) {
        return dao.getFlightTransInstructions(flightTransInstruction);
    }

    /**
     * @see com.sasis.service.FlightTransInstructionManager#getFlightTransInstruction(String id)
     */
    public FlightTransInstruction getFlightTransInstruction(final String id) {
        return dao.getFlightTransInstruction(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransInstructionManager#saveFlightTransInstruction(FlightTransInstruction flightTransInstruction)
     */
    public int saveFlightTransInstruction(FlightTransInstruction flightTransInstruction) {
       return dao.saveFlightTransInstruction(flightTransInstruction);
    }

    /**
     * @see com.sasis.service.FlightTransInstructionManager#removeFlightTransInstruction(String id)
     */
    public void removeFlightTransInstruction(FlightTransInstruction flightTransInstruction) {
        dao.removeFlightTransInstruction( flightTransInstruction);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
